package com.itheima.dao;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.Map;

public interface OrderDao {

    long findByCondition(@Param("memberId") Integer memberId, @Param("orderDate") Date orderDate, @Param("setmealId") String setmealId);

    int add(Order order);

    Map<String,Object> findOrderById(Integer id);

    long findTodayOrderNumber(String today);

    long findTodayVisitsNumber(String today);

    long findOrderNumber(@Param("startTime") String startTime, @Param("endTime") String endTime);

    long findVisitsNumber(String date);

}
